package com.dream.wukong.common.core.jdbc.generator;

import java.util.UUID;

/**
 * @Author: wuyichao
 * @Description:
 * @Date: Created in 10:15 2018/9/18.
 * @Modified:
 * 使用UUID来生成主键
 */

public class UuidGenerator implements IdGenerator {
    public static final String 	UUID_ ="UUID" ;

    @Override
    public Object generateValue( ) {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

}